package com.yxk.bootvueshop.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yxk.bootvueshop.entity.dto.SpManagerDTO;
import com.yxk.bootvueshop.entity.vo.ManagerVO;


public interface SpManagerService {

    //分页条件查询
    Page<ManagerVO> getMangerByLike(Page<ManagerVO> page, String query);

    //新增
    ManagerVO create(SpManagerDTO spManagerDTO);

    //更新
    ManagerVO updateState(Integer uId, String type);

    ManagerVO getById(Integer id);

    ManagerVO updateManger(Integer id, SpManagerDTO dto);

    int deleteById(Integer id);

    ManagerVO updateRole(Integer id, SpManagerDTO dto);
}
